package com.iflysse.services;


import com.iflysse.pojo.bo.CommonBoResp;
import com.iflysse.pojo.bo.req.AddChapterBoReq;
import com.iflysse.pojo.bo.req.ChapterIdBoReq;
import com.iflysse.pojo.bo.req.CourseIdBoReq;
import com.iflysse.pojo.bo.resp.ChapterListBoResp;

import java.sql.SQLException;

public interface ChapterService {
    /**
     * 添加章
     * @param addChapterBoReq 章
     * @return
     */
    CommonBoResp addChapter(AddChapterBoReq addChapterBoReq) throws SQLException;

    /**
     * 根据课程获取章列表
     * @param courseIdBoReq
     * @return
     */
    ChapterListBoResp loadChapterByCourseId(CourseIdBoReq courseIdBoReq) throws SQLException;


    /**
     * 根据章编号删除章
     * @param chapterIdBoReq
     * @return
     */
    CommonBoResp deleteChapterByChapterId(ChapterIdBoReq chapterIdBoReq) throws SQLException;
}
